<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: luanzg <782114271@qq.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\Admin;

Route::group(function () {

    // 节目时段管理栏目，相关api
    Route::get('Program/pgmseq', 'pgmseqList');
    Route::post('Program/pgmseq', 'pgmseqAdd');
    Route::put('Program/pgmseq', 'pgmseqEdit');
    Route::delete('Program/pgmseq', 'pgmseqDel');

    // 广告时段管理栏目，相关api
    Route::get('Program/advseq', 'advseqList');
    Route::post('Program/advseq', 'advseqAdd');
    Route::put('Program/advseq', 'advseqEdit');
    Route::delete('Program/advseq', 'advseqDel');

    // 其他设置
    Route::get('Program/otherinfo', 'otherinfo');
    Route::post('Program/otherset', 'otherset');

    Route::get('Program/getChannelList', 'getChannelList');
})->prefix('Program/')->allowCrossDomain(headers())->middleware(Admin::class);
